﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FullSizeImage.aspx.cs" Inherits="FullSizeImage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Full Size Image</title>
     <script type="text/javascript">
		<!--
		function FitPic() { 
		  var myWidth = 0, myHeight = 0;
          if( typeof( window.innerWidth ) == 'number' ) {
            //Non-IE
            myWidth = window.innerWidth;
            myHeight = window.innerHeight;
          } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
            //IE 6+ in 'standards compliant mode'
            myWidth = document.documentElement.clientWidth;
            myHeight = document.documentElement.clientHeight;
          } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
            //IE 4 compatible
            myWidth = document.body.clientWidth;
            myHeight = document.body.clientHeight;
          }
			myWidth = -(myWidth - document.images[0].width); 
			myHeight = -(myHeight - document.images[0].height);
			//use these numbers below to add to or take away pixels from the window width and height
			myWidth = myWidth;
			myHeight = myHeight; 
			window.resizeBy(myWidth, myHeight); 
			self.focus(); 
		} 
		// -->
    </script>
</head>
<body onload="FitPic();">
    <form id="frmFullSizeImage" runat="server" >
    <div>
        <center><img border="0" runat="server" id="imgImage"  /></center>
    </div>
    </form>
</body>
</html>